package com.ahtcm.tcmlearning.dao;

import com.ahtcm.tcmlearning.model.Medicine;

import java.util.List;

public interface MedicineMapper {
    int deleteByPrimaryKey(Integer medicineId);

    int insert(Medicine record);

    int insertSelective(Medicine record);

    Medicine selectByPrimaryKey(Integer medicineId);

    int updateByPrimaryKeySelective(Medicine record);

    int updateByPrimaryKey(Medicine record);

    /**
     * @description 搜索表中全部中药
     * @return
     */
    List<Medicine> selectAllFromMedicine();
}